<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/3/14
  Time: 19:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:set var="ctx" value="<%=basePath%>"  />
<html>
<head>
    <title>人员管理</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/static/bootstrapTable/bootstrap-table.min.css">
    <link rel="stylesheet" href="/static/toastr/toastr.min.css">
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <script src="/static/bootstrapTable/bootstrap-table.min.js"></script>
    <script src="/static/bootstrapTable/bootstrap-table-zh-CN.min.js"></script>
    <script src="/static/toastr/toastr.min.js"></script>
    <script src="/static/js/admin/admin_user.js"></script>
    <style type="text/css">
        /*只显示纵向滑动条*/
        html { overflow-x: hidden; overflow-y: hidden; }
        /*striped : true 不生效
        nth-child 选择器匹配属于其父元素的第 N 个子元素*/
        #loadTable tr:nth-child(even){
            background: #F0F8FF;
        }
        #loadTable tr:nth-child(odd){
            background: #F0FFFF;
        }
        /*只显示纵向滑动条*/
        html { overflow-x: hidden; overflow-y: hidden; }
        .table > tbody > tr > td{padding: 1px}
    </style>
    <script type="application/javascript">
        var ctx= '${ctx}';
        console.info("桃子大水阿比"+ctx)
    </script>
</head>
<body>
    <div class="panel panel-default">
        <div class="panel-heading">
            查询条件
        </div>
        <div class="panel-body form-group" style="margin-bottom:0px;">
            <label class="col-md-1 control-label" style="text-align: right; margin-top:5px">姓名：</label>
            <div class="col-md-2">
                <input type="text" class="form-control" name="Name" id="search_name" autocomplete="off"/>
            </div>
            <label class="col-md-1 control-label" style="text-align: right; margin-top:5px">手机号：</label>
            <div class="col-md-2">
                <input type="text" class="form-control" name="Name" id="search_tel" autocomplete="off"/>
            </div>
            <label class="col-md-1 control-label" style="text-align: right; margin-top:5px">状态：</label>
            <div class="col-md-2">
                <select class="form-control" id="sel1">
                    <option value="">全部</option>
                    <option value= 0>正常</option>
                    <option value= 1>已拉黑</option>
                </select>
            </div>
            <div class="col-md-2">
                <button class="btn btn-primary pull-right" id="search_btn">查询</button>
            </div>
        </div>
    </div>
    <table id="loadTable" class="table table-hover"></table>
    <!-- 模态框 -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">拉黑理由</h4>
                </div>
                <div class="modal-body" id="active">
                    <input type="hidden" id="hiddenuserid">
                    <input type="checkbox" name="activing" id="error1" value="1">言语过失
                    <input type="checkbox" name="activing" id="error2" value="2">违规操作
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" id="saveActive">保存</button>
            </div>
            </div>
        </div>
    </div>
</body>
</html>
